package org.ume.school.modules.model;

/**
 * Created by Django on 2017/8/10.
 */
public enum ErrorTag {
    NOT_ALLOW_EDIT("1007", "不允许编辑"),
    NOT_ALLOW_THUMBUP("1002", "不允许点赞"),
    REPEAT_USER_NAME("1003", "重复用户名"),
    NOT_ALLOW_USERNAME_EMPTY("1004", "不允许用户名为空"),
    INVAILD_USER("1403", "无效用户,请先登录"),
    NOT_FIND_USER("1005", "找不到用户"), LOGIN_FAILURE("1006", "登录失败");

    private String message;
    private String code;

    private ErrorTag(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
